/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp;

import java.util.TimerTask;
/**
 *
 * @author rbs
 */
public class Exit extends TimerTask{

    private MainFrame f;
    String warnmsg = "";

    public Exit(MainFrame frame) {
        this.
        f = frame;
    }

    Exit(MainFrame frame, String string) {
        f = frame;
        warnmsg = string;
    }


    public void run() {
        if (!warnmsg.isEmpty())
            f.SetExitMsg(warnmsg);
        else
            System.exit(0);
    }

    public void countDown(int time)
    {

    }

}
